Page({

  data: {
    sexIndex: '',
    sex:['男','女'],
    yeaIndex: '',
    yea:[
      "20~25岁",
      "26~30岁",
      "31~35岁",
      "36~40岁",
    ],
    heiIndex:'',
    hei:[
      "165~170cm",
      "171~175cm",
      "175~180cm",
      "181~185cm",
    ],
    region: ['河北省', '保定市', '涞源县'],
    customItem: '全部',
    eduIndex: '',
    edu:[
      "博士研究生",
      "硕士研究生",
      "本科生",
      "专科生",
      "高中",
      "其他",
    ],
    inc:[
      "3000~5000RMB",
      "5000~8000RMB",
      "8000~10000RMB",
      "10000~12000RMB",
      "12000~15000RMB",
    ],
    marIndex: '',
    mar:[
      "未婚",
      "二婚",
      "离异",
    ],
    houIndex: '',
    hou:[
      "与父母同住",
      "在外租房",
      "已经买房",
    ],

  },
  bindPickerChange(e){
    console.log(e)
    this.setData({
      sexIndex:e.detail.value
    })
  },
  changeYea(e){
    this.setData({
      yeaIndex:e.detail.value
    })
  },
  changeHei(e){
    this.setData({
      heiIndex:e.detail.value
    })
  },
  changeWor(e){
    this.setData({
      worIndex:e.detail.value
    })
    console.log(this.setData.worIndex);
  },
 
  changeEdu(e){
    this.setData({
      eduIndex:e.detail.value
    })
  },
  changeInc(e){
    this.setData({
      incIndex:e.detail.value
    })
  },
  changeMar(e){
    this.setData({
      marIndex:e.detail.value
    })
  },
  changeHou(e){
    this.setData({
      houIndex:e.detail.value
    })
  },
   bindRegionChange (e) {
    console.log('picker发送选择改变，携带值为', e.detail.value)
    this.setData({
      region: e.detail.value
    })
  },

  onLoad () {

  },
})


